<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>

<title>product</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript" src="js/employee.js"></script>

</head>

<body>
	 <!-- Alternative Content Box Start -->
         <div class="contentcontainer">
            <div class="headings altheading">
                <h2>产品</h2>
            </div>
            <div class="contentbox">
            	<table width="100%">
                	<thead>
                    	<tr>
                        	<th>编号</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>价格</th>
                            <th>备注</th><%--
                            <th>图片</th>
                            --%><th>尺寸</th>
                            <th>颜色</th>
                            <th>操作</th>
                            <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
                        </tr>
                    </thead>
	                <tbody>
						<c:forEach items="${productList}" var="product" varStatus="i">
							<c:choose>
								<c:when test="${(i.count) % 2 == 0}">
									<c:set var="rowclass" value="" />
								</c:when>
								<c:otherwise>
									<c:set var="rowclass" value="alt" />
								</c:otherwise>
							</c:choose>
							<tr class="${rowclass}">
								<td>${product.productCode}</td>
								<!-- 产品编号 -->
								<td>${product.name}</td>
								<!-- 产品名 -->
								<td>${product.type}</td>
								<!-- 产品类型 -->
								<td>${product.pieceRate}</td>
								<!-- 产品工价 -->
								<td>${product.comment}</td>
								<!-- 注释 -->
								<td >${product.size}</td>
								<!-- 大小 -->
								<td>${product.color}</td>
								<!-- 颜色 -->
								
								<td><a href="javascript:void(0)" title=""><img
									src="img/icons/icon_edit.png" alt="Edit" /> </a> <a
								href="javascript:void(0)" title=""><img
									src="img/icons/icon_unapprove.png" alt="delete" /> </a></td>
							
								<td><input type="checkbox" value="" name="checkall" /></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
                <jsp:include page="splitPage.jsp"></jsp:include>
            </div>
            
        </div>
        <!-- Alternative Content Box End -->
	
</body>
</html>
